package com.yugao.fintech.draper.auth.api;

import com.yugao.fintech.draper.common.constant.ServerConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "tenantFeignApi", value = ServerConstant.DRAPER_ADMIN)
public interface TenantFeignApi {
    /**
     * 校验租户信息是否合法
     *
     * @param id 租户id
     */
    @GetMapping(value = "/tenant/validTenant/{id}")
    void validTenant(@PathVariable("id") Long id);

}
